package com.oro.dao;

import java.util.List;

import com.oro.domain.Authority;
import com.oro.domain.User;

public interface UserDao {

	public void deleteAuthorities();

	public void deleteAuthority(Long id);

	public void deleteAuthority(String role);

	public void deleteUser(Long id);

	public void deleteUsers();

	public List<com.oro.domain.Authority> getAuthorities();

	public Authority getAuthority(Long id);

	public Authority getAuthority(String role);

	public User getUser(Long id);

	public User getUserByUsername(String username);

	public List<com.oro.domain.User> getUsers();

	public void save(Authority au);

	public void save(List<Authority> authorities);

	public void save(User user);

}
